package com.fat.service;

import com.fat.pojo.Result;
import com.fat.pojo.User;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Pattern;

public interface UserService {
    User findByUsername(String username);

    void register(String username, String password);

    Result login(String username,String password);

    Result getUserInfo();

    Result update(User user);

    Result updateAvatar(String avatarUrl);

    Result updatePwd(String oldPwd, String newPwd,String rePwd);
}
